#pragma once
#include "featureextract.h"

class CHistFeature : public CFeatureExtract
{
	int m_iHistSize;

	static void RGB2HSV(byte R, byte G, byte B, float& H, float& S, float& V);

public:
	CHistFeature(void);
	~CHistFeature(void);
	void SetHistSize(int iSize)	{m_iHistSize = iSize;}

	virtual BOOL Calc(CString& sPath, OUT CArray<double>& arrFeatures);
	virtual BOOL Calc(Bitmap* bmp, OUT CArray<double>& arrFeatures);
};
